﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using UFIDA.U8.Portal.Framework.Actions;
using UFIDA.U8.Portal.Framework.MainFrames;
using UFIDA.U8.Portal.Proxy.Actions;
using UFIDA.U8.Portal.Proxy.editors;
using UFSoft.U8.Framework.Login.UI;

namespace UFIDA.U8.WAZH.BANKDETAIL
{
    class BankDetailUserControl : INetUserControl
    {
        #region INetUserControl 成员

        private IEditorInput _editInput = null;
        private IEditorPart _editPart = null;
        private string _title;
        BankDetailUI usercontrol;
         

        public bool CloseEvent()
        { 
            this.usercontrol = null;
            return true;
        }

        public Control CreateControl(clsLogin login, string MenuID, string Paramters)
        { 
            try
            {
                usercontrol = new BankDetailUI(login);

                usercontrol.Name = "NC客户下载";
                return usercontrol;
            }
            catch (Exception e)
            {
                throw e;
            } 
        }

        public NetAction[] CreateToolbar(clsLogin login)
        {
            IActionDelegate nsd = new BankDetailNetDelegate(); 

            NetAction[] aclist;
            aclist = new NetAction[5]; 
            return aclist;
        }

        public IEditorInput EditorInput
        {
            get
            {
                return _editInput;
            }
            set
            {
                _editInput = value;
            }
        }

        public IEditorPart EditorPart
        {
            get
            {
                return _editPart;
            }
            set
            {
                _editPart = value;
            }
        }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title
        {
            get
            {
                return this._title;
            }
            set
            {
                this._title = value;
            }
        }

        #endregion
    }
}
